﻿@{
    ViewBag.Title = "ASP.Net MVC 4 Templated HTML Helpers Samples";
    
     @model MVC4CodeSamples.Areas.HTMLHelpers.Models.Employee
}
<h2>@ViewBag.Title</h2>
<table>
    <tr>
        <td>
            Helper Name
        </td>
        <td>
            Helper Code
        </td>
        <td>
            Output
        </td>
    </tr>
    <tr>
        <td>
            Display
        </td>
        <td>
            @@Html.Display("EmpID")
        </td>
        <td>
             @Html.Display("EmpID")
        </td>
    </tr>
    <tr>
        <td>
            DisplayFor
        </td>
        <td>
            @@Html.DisplayFor(x=>x.EmpName)
        </td>
        <td>
             @Html.DisplayFor(x=>x.EmpName)
        </td>
    </tr>
    <tr>
        <td>
            DisplayFor
        </td>
        <td>
            @@Html.DisplayFor(x=>x.IsFullTime)
        </td>
        <td>
             @Html.DisplayFor(x=>x.IsFullTime)
        </td>
    </tr>
    <tr>
        <td>
            DisplayFor
        </td>
        <td>
            @@Html.DisplayFor(x=>x.DOB)
        </td>
        <td>
             @Html.DisplayFor(x=>x.DOB)
        </td>
    </tr>
     <tr>
        <td>
            Editor
        </td>
        <td>
            @@Html.Editor("EmpID")
        </td>
        <td>
             @Html.Editor("EmpID")
        </td>
    </tr>
    <tr>
        <td>
            EditorFor
        </td>
        <td>
            @@Html.EditorFor(x=>x.EmpName)
        </td>
        <td>
             @Html.EditorFor(x => x.EmpName)
        </td>
    </tr>
    <tr>
        <td>
            EditorFor
        </td>
        <td>
            @@Html.EditorFor(x=>x.IsFullTime)
        </td>
        <td>
             @Html.EditorFor(x => x.IsFullTime)
        </td>
    </tr>
    <tr>
        <td>
            EditorFor
        </td>
        <td>
            @@Html.EditorFor(x=>x.DOB)
        </td>
        <td>
             @Html.EditorFor(x => x.DOB)
        </td>
    </tr>
</table>
